package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	Image      string  `gorm:"type:varchar(225);"`
	Name       string  `gorm:"type:varchar(20)"`
	Navigation string  `gorm:"type:varchar(20)"`
	Label      string  `gorm:"type:varchar(10)"`
	Price      float64 `gorm:"type:decimal(10,2)"`
	Money      float64 `gorm:"type:decimal(10,2)"`
	Stock      int     `gorm:"type:int(10)"`
	Sales      int     `gorm:"type:int(10)"`
	Status     string  `gorm:"type:enum('已上架','未上架')"`
	Userid     int     `gorm:"type:int(10)"`
}
